package com.qf.service.impl;

import com.qf.entity.Emp;
import com.qf.mapper.EmpMapper;
import com.qf.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * --- 天道酬勤 ---
 *
 * @author 卢泓光
 * @date 2025/8/9
 * @desc
 */
@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpMapper empMapper;
    @Override
    public int addEmp(Emp emp) {

        return empMapper.addEmp(emp);

    }

    @Override
    public int delectEmp(Integer empno) {
        return empMapper.delectEmp(empno);
    }

    @Override
    public int updateEmp(Emp emp) {
        return empMapper.updateEmp(emp);
    }

    @Override
    public Emp queryEmp(Integer empno) {
        return empMapper.queryEmp(empno);
    }

    @Override
    public List<Emp> queryLike(String ename) {
        return empMapper.queryLike(ename);
    }

    @Override
    public List<Emp> queryLikes(Map<String, Object> map) {
            List<Emp> list = empMapper.queryLikes(map);
        return list;


    }
}
